<!DOCTYPE HTML>
<html>

	<head>
		<script id="allmobilize" charset="utf-8" src="${rc.contextPath}/js/allmobilize.min.js"></script>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="alternate" media="handheld" />
		<!-- end 云适配 -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>$!{jobVo.job.job_name}-$!{jobVo.job.job_company_name}-城建就业指导网</title>

		<!-- <div class="web_root"  style="display:none">h</div> -->
		<script type="text/javascript">
			console.log("让你看见了，如果你关注城建毕业生就业，对技术感兴趣，请加入我们！");
		</script>
		<link rel="Shortcut Icon" href="h/images/favicon.ico">
		<link rel="stylesheet" href="${rc.contextPath}/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="${rc.contextPath}/css/style.css" />
		<link rel="stylesheet" type="text/css" href="${rc.contextPath}/css/external.min.css" />
		<link rel="stylesheet" type="text/css" href="${rc.contextPath}/css/popup.css" />
		<script src="${rc.contextPath}/js/jquery.1.10.1.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="${rc.contextPath}/bootstrap/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="${rc.contextPath}/js/jquery.lib.min.js"></script>
		<script src="${rc.contextPath}/js/ajaxfileupload.js" type="text/javascript"></script>
		<script src="${rc.contextPath}/js/jquery-hbzx.js" type="text/javascript"></script>
		<!--[if lte IE 8]>
		    <script type="text/javascript" src="${rc.contextPath}/js/excanvas.js"></script>
		<![endif]-->
		<script type="text/javascript">
			var youdao_conv_id = 271546;
		</script>
		<script type="text/javascript" src="${rc.contextPath}/js/conv.js"></script>
	</head>

	<body>
	
		#parse("header.html")
	
		<div id="body">
			<!-- end #header -->
			<div id="container">
				<div class="clearfix">
					<div class="content_l">
						<dl class="job_detail">
						<dt>
                        <h1 title="内容运营">
                            <em></em>
                            <div>$!{jobVo.job.job_company_name} $!{jobVo.job.job_department}招聘</div>
                           	$!{jobVo.job.job_name}
                        </h1>
                        #if($!curr_user)
                        	#if($!collection)
                        	<a class="jd_collection collected" data-id="$!jobVo.job.id" href="#" title="取消收藏"></a>
                        	#else
							<a class="jd_collection" id="job_collect" data-id="$!jobVo.job.id" href="#" title="收藏"></a>
							#end
						#else
						<a class="inline jd_collection" href="#loginPop" title="登录"></a>
						#end
                       	</dt>
							<dd class="job_request">
								<span class="red">$!{jobVo.job.job_salary_min}k-$!{jobVo.job.job_salary_max}k</span>
								<span>$!jobVo.job.location_name</span>
								#if($!jobVo.job.job_request_worktime == 0)
								<span>不限 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 1)
								<span>应届毕业生 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 2)
								<span>1年 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 3)
								<span>1-3年 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 4)
								<span>3-5年 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 0)
								<span>5-10年 </span>
								#end
								#if($!jobVo.job.job_request_worktime == 0)
								<span>10年以上 </span>
								#end
								#if($!jobVo.job.job_request_edubackground == 0)
								<span>不限</span>
								#end
								#if($!jobVo.job.job_request_edubackground == 1)
								<span>专科</span>
								#end
								#if($!jobVo.job.job_request_edubackground == 2)
								<span>本科</span>
								#end
								#if($!jobVo.job.job_request_edubackground == 3)
								<span>硕士</span>
								#end
								#if($!jobVo.job.job_request_edubackground == 4)
								<span>博士</span>
								#end
								#if($!jobVo.job.job_category == 0)
								<span>全职</span>
								#end
								#if($!jobVo.job.job_category == 1)
								<span>兼职</span>
								#end
								#if($!jobVo.job.job_category == 2)
								<span>实习</span>
								#end
								<br /> 职位诱惑 : $!jobVo.job.job_brief
								<div>发布时间：$!{jobVo.job.gmt_create}发布</div>
							</dd>
							<dd class="job_bt">
								<h3 class="description">职位描述</h3>
								$!jobVo.jobDetail.request_content
							</dd>
							
							<dd class="job_bt">
								<h3 class="description">简介接收邮箱</h3>
								$!jobVo.job.job_receive_email
							</dd>

							<!-- 扫码加在这里 -->
						</dl>
						
						<dl id="noJobs" class="c_section">
								<dt>
			                    	<h2><em></em>职位评论</h2>
			                    </dt>
								<dd>
									<div class="list-container">
										<ul class="list-content" id="remark_list">
											#foreach($!remark in $!remarkList)
											<li class="review-area clearfix" style="width: 590px;">
							                    <div class="review-avater">
							                        <img class="lazy_img" data-original="//127.0.0.1:8080/image/portrait/$!remark.remark_user.portrait" alt="评价人头像" width="50" height="50" rel="nofollow" src="http://127.0.0.1:8080/image/portrait/$!remark.remark_user.portrait" style="display: inline-block;">
							                        <span class="review-name">$!remark.remark_user.nickname</span>
							                        <span class="pull-right">$!remark.gmt_create</span>
							                    </div>
							                    <div class="review-right">
							                       
							                        
							                        <div class="review-content">
														<div>
							                                <span class="review-type">[面试过程]</span>
							                                <div class="interview-process">$!remark.remark_detail</div>
							                            </div>
							                        </div>
							                        <div class="review-action">
							                            <a rel="nofollow" href="javascript:;" class="useful no_select" data-id="$!remark.id">说得对<span class="glyphicon glyphicon-thumbs-up"></span>&nbsp;(&nbsp;<span>$!remark.remark_agree</span>&nbsp;)<i></i></a>
							                        </div>
							                        <div class="review-reply" data-index="0">
							                        </div>
							                    </div>
							                </li>
							                <hr/>
							                #end
										</ul>
										<div class="pagination" style="margin: 0px 0 20px;">$!page.pageString</div>
										
										
										<div class="panel">
											<div class="panel-heading">
												<h5>回复</h5>
											</div>
											<div class="panel-body">
												<form action="${rc.contextPath}/job/addremark" method="post">
													<input type="hidden" name="remark_job" value="$!jobVo.job.id"/>
													<textarea rows="10" cols="50" name="remark_detail" placeholder="请输入评价内容" required="required"></textarea>
													#if($!curr_user)
													<button type="submit" class="btn fr btn_apply">提交</button>
													#else
													<a href="#loginPop" title="登录" class="inline btn fr btn_apply">登录</a>
													#end
												</form>
											</div>
										</div>
									</div>
								</dd>
							</dl>
						
					</div>
					<div class="content_r">
						<dl class="job_company">
							<dt>
                    	<a href="${rc.contextPath}/company/detail/$!company.id" target="_blank">
                            <img class="b2" src="http://127.0.0.1:8080/image/companylogo/$!company.company_logo" width="80" height="80" alt="$!company.company_name" />
                            <div>
                                <h2 class="fl">
                                	$!company.company_name
                                </h2>
                            </div>
                        </a>
                    </dt>
							<dd>
								<ul class="c_feature reset">
									<li><span>领域</span>$!company.domain_name</li>
									#if($!company.company_scale == 0)
									<li><span>规模</span>少于15人</li>
									#end
									#if($!company.company_scale == 1)
									<li><span>规模</span>15-50人</li>
									#end
									#if($!company.company_scale == 2)
									<li><span>规模</span>50-150人</li>
									#end
									#if($!company.company_scale == 3)
									<li><span>规模</span>150-500人</li>
									#end
									#if($!company.company_scale == 4)
									<li><span>规模</span>500-2000人</li>
									#end
									#if($!company.company_scale == 5)
									<li><span>规模</span>2000人以上</li>
									#end
									<li>
										<span>主页</span>
										<a href="$!company.company_website" target="_blank" title="$!company.company_website" rel="nofollow">$!company.company_website</a>
									</li>
								</ul>

								<h4>发展阶段</h4>
								<ul class="c_feature reset">
									#if($!company.company_develop == 0)
									<li><span>目前阶段</span> 未融资</li>
									#end
									#if($!company.company_develop == 1)
									<li><span>目前阶段</span> 天使轮</li>
									#end
									#if($!company.company_develop == 2)
									<li><span>目前阶段</span> A轮</li>
									#end
									#if($!company.company_develop == 3)
									<li><span>目前阶段</span> B轮</li>
									#end
									#if($!company.company_develop == 4)
									<li><span>目前阶段</span> C轮</li>
									#end
									#if($!company.company_develop == 5)
									<li><span>目前阶段</span> D轮以上</li>
									#end
									#if($!company.company_develop == 6)
									<li><span>目前阶段</span> 上市公司</li>
									#end
								</ul>

								<h4>工作地址</h4>
								<div>武汉市武昌区螃蟹岬凤凰大厦A1-1301</div>
								<div id="smallmap"></div>
							</dd>
						</dl>
					</div>
				</div>

				
				<!-------------------------------------弹窗lightbox  ----------------------------------------->
				#parse("common/loginForm.html")
				<!------------------------------------- end ----------------------------------------->

				<script type="text/javascript" src="${rc.contextPath}/js/job_detail.js"></script>
				<script type="text/javascript" src="${rc.contextPath}/js/count.js"></script>

				
				<div class="clear"></div>
				<a id="backtop" title="回到顶部" rel="nofollow"></a>
			</div>
			<!-- end #container -->
		</div>
		<!-- end #body -->
		<div id="footer">
			
		</div>

		<script type="text/javascript" src="${rc.contextPath}/js/core.min.js"></script>
		<script type="text/javascript" src="${rc.contextPath}/js/popup.min.js"></script>

	</body>
	
	<script type="text/javascript">
	$(document)
	.on(
			"click",
			".pagination a",
			function(e) {
				var pageNum = $(this).attr("pageData");
				if (pageNum == 0 || isNaN(pageNum)) {
					return;
				}
				jQuery.ajax({
					url	:	"${rc.contextPath}/job/remark/$!{jobVo.job.id}/"+pageNum,
					type:	"get",
					dataType:"json",
					success:	function(data){
							if(data.remarkList.length==0){
								alert("已无更多！");
								return ;
							}
							var remarkText='';
							var pageText='';
							for(i=0;i<data.remarkList.length;i++){
								var remarkid=data.remarkList[i].id;
								var job_id=data.remarkList[i].remark_job;
								var username = data.remarkList[i].remark_user.nickname;
								var portrait = data.remarkList[i].remark_user.portrait;
								var detail = data.remarkList[i].remark_detail;
								var agree = data.remarkList[i].remark_agree;
								var time = data.remarkList[i].gmt_create;
								remarkText +='<li class="review-area clearfix" style="width: 590px;">'+
				                    '<div class="review-avater">'+
		                        '<img class="lazy_img" data-original="//127.0.0.1:8080/image/portrait/'+ portrait +
		                        '" alt="评价人头像" width="50" height="50" rel="nofollow" src="http://127.0.0.1:8080/image/portrait/'+ portrait +'" style="display: inline-block;">'+
		                        '<span class="review-name">'+ username +'</span>'+
		                        '<span class="pull-right">'+ time +'</span></div>'+
		                    '<div class="review-right">'+
		                        '<div class="review-content"><div>'+
		                                '<span class="review-type">[评价]</span>'+
		                                '<div class="interview-process">'+ detail +'</div>'+
		                            '</div></div>'+
		                        '<div class="review-action">'+
		                            '<a rel="nofollow" href="javascript:;" class="useful no_select" data-id="'+ remarkid +'">说得对<span class="glyphicon glyphicon-thumbs-up"></span>&nbsp;(&nbsp;<span>'+ agree +'</span>&nbsp;)<i></i></a>'+
		                        '</div>'+
		                        '<div class="review-reply" data-index="0"></div></div></li><hr/>';
							}
							pageText += '<div class="pagination" style="margin: 0px 0 20px;">' + data.page.pageString + '</div>';
							$(".list-content").empty();
							$(".pagination").remove();
							$(".list-content").append(remarkText);
							$(".list-content").after(pageText);
							location.href="#remark-list";
					}
				});
			});
	
	$(document)
	.on(
			"click",
			"#job_collect",
			function(e) {
				jQuery.ajax({
					url	:	"${rc.contextPath}/user/collect/job/?jobId="+$(this).data("id"),
					type:	"get",
					dataType:"json",
					success:	function(data){
						if(data.code == 200){
							alert(data.info);
							location.reload();
						}else{
							alert(data.info);
						}
					}
				});
			});
	
	$(document)
	.on(
			"click",
			".useful",
			function(e) {
				jQuery.ajax({
					url	:	"${rc.contextPath}/job/remark/agree?id="+$(this).data("id"),
					type:	"get",
					dataType:"json",
					success:	function(data){
						if(data.code == 200){
							alert(data.info);
							location.reload();
						}else{
							alert(data.info);
						}
					}
				});
			});
	
</script>
</html>